package IO流;

import java.util.Iterator;
import java.util.Properties;
import java.util.Set;

/**
 * @author:谢君臣
 * @Date:2021/5/17-14:41
 * @version:1.0
 * @function:
 */
public class TestProperties {
    public static void main(String[] args) {
        Properties properties = new Properties();
        properties.put("张三","12");
        Set<Object> objects = properties.keySet();
        Iterator<Object> iterator = objects.iterator();
        while (iterator.hasNext()) {
            System.out.println(properties.getProperty((String) iterator.next()));
        }

    }
}
